﻿using BCDto.TMS.TrainingSite.TrainingSiteBusinessHours;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCDto.TMS.TrainingSite.TrainingSiteConfig
{
    /// <summary>
    /// 培训点配置请求信息模型
    /// </summary>
    public class TrainingSiteConfigRequestDto
    {
        /// <summary>
        /// 培训点名称
        /// </summary>
        [Display(Name = "培训点名称")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string TrainingSiteName { get; set; }

        /// <summary>
        /// 培训点地址
        /// </summary>
        [Display(Name = "培训点地址")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string TrainingSiteAddress { get; set; }

        /// <summary>
        /// 省编码
        /// </summary>
        [Display(Name = "省编码")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string ProvinceCode { get; set; }

        /// <summary>
        /// 市编码
        /// </summary>
        [Display(Name = "市编码")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string CityCode { get; set; }

        /// <summary>
        /// 区县编码
        /// </summary>
        [Display(Name = "区县编码")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string CountyCode { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [Display(Name = "联系电话")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public string Phone { get; set; }

        /// <summary>
        /// 可预约人数
        /// </summary>
        [Display(Name = "可预约人数")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public int AppointmentAvailable { get; set; }

        ///// <summary>
        ///// 培训点营业时间
        ///// </summary>
        //[Display(Name = "培训点营业时间")]
        //public List<TrainingSiteBusinessHoursRequestDto> TrainingSiteBusinesses { get; set; }
    }
}
